You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

radash

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

radash

Functional utility library - modern, simple, typed, powerful

12.1.1
latest
Source
npmnpm
Version published
Weekly downloads
310K
9.81%
Maintainers
1
Weekly downloads
 
Created

What is radash?

Radash is a utility library for JavaScript and TypeScript that provides a collection of functions for common programming tasks. It aims to be a modern alternative to lodash, offering a more streamlined and type-safe experience.

What are radash's main functionalities?

Array Utilities

The `chunk` function splits an array into smaller arrays of a specified size. This is useful for processing large arrays in smaller, more manageable pieces.

const { chunk } = require('radash');
const array = [1, 2, 3, 4, 5, 6, 7, 8];
const chunkedArray = chunk(array, 3);
console.log(chunkedArray); // [[1, 2, 3], [4, 5, 6], [7, 8]]

Object Utilities

The `pick` function creates a new object composed of the specified properties from the original object. This is useful for selecting only the necessary data from an object.

const { pick } = require('radash');
const obj = { a: 1, b: 2, c: 3 };
const picked = pick(obj, ['a', 'c']);
console.log(picked); // { a: 1, c: 3 }

String Utilities

The `camelCase` function converts a string to camel case. This is useful for formatting strings to a common naming convention.

const { camelCase } = require('radash');
const str = 'hello world';
const camelCasedStr = camelCase(str);
console.log(camelCasedStr); // 'helloWorld'

Function Utilities

The `debounce` function delays the execution of a function until after a specified wait time has elapsed since the last time it was invoked. This is useful for limiting the rate at which a function can be executed.

const { debounce } = require('radash');
const log = () => console.log('Debounced!');
const debouncedLog = debounce(log, 2000);
debouncedLog();
debouncedLog();
debouncedLog(); // 'Debounced!' will be logged only once after 2 seconds

Other packages similar to radash

FAQs

Package last updated on 18 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts